package com.msw.axon.model;

import com.msw.axon.model.util.BooleanToStringConverter;
import lombok.Data;

import javax.persistence.Convert;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

/**
 * Created by hadoop on 17-5-13.
 */
@Data
@Entity
@DiscriminatorValue("1")
public class Student extends Person {

    private int score;

    @Convert(converter = BooleanToStringConverter.class)
    private Boolean hasMoney;


}
